﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Automation;
using System.Windows.Markup;
using MultiCommunication.ViewModels;

namespace MultiCommunication.Models
{
    public class LogEntry
    {
        public DateTime TimeStamp { get; set; }
        public string? Level { get; set; }
        public string? Logger { get; set; }
        public string? Message { get; set; }
        public string? Exception { get; set; }

        public string? currentTabName => Mediator.currentTabName;
        public override string ToString()
        {
            return string.Format("{0}-[{1}]-[{2}]:{3}",TimeStamp.ToString("yyyy-MM-dd HH:mm:ss"),currentTabName,Level,Message);
        }
    }
    
}
